package com.github.eden;

import com.github.eden.config.Config;
import com.github.eden.generator.CodeGenerator;
import com.github.eden.util.Utils;

public class Main {

    private static final String CONFIG_FILE = "config/config.yaml";

    public static void main(String[] args) throws Exception {
        String rootPath = Utils.getRootPath();

        Config config = Utils.loadYaml(rootPath + CONFIG_FILE, Config.class);
        CodeGenerator generator = new CodeGenerator(config);
        generator.execute();
    }

}
